
package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.mybatis.annotations.Column;
import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;

import java.io.Serializable;

/**
 * Created by justin on 15/6/29.
 * CREATE TABLE `nb_terminal` (
 `terminal_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '展示端id',
 `terminal_name` varchar(50) DEFAULT NULL COMMENT '展示端名称',
 `sort_index` int(11) DEFAULT NULL COMMENT '排序号',
 PRIMARY KEY (`terminal_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='展示端（手机端、嵌入端、资源站点）
 ';
 */
@Table(value = "nb_terminal")
public class Terminal implements Serializable{

    private static final long serialVersionUID = -8244661101951482489L;

    public static final String COLUMN_SORTINDEX = "sortIndex";

    @Id(value = "terminal_id")
    private Integer id;

    @Column(value = "terminal_name")
    private String terminalName;//展示端名称

    @Column(value = "sort_index")
    private Integer sortIndex;//排序号

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }
}
